#include <stdio.h>

#include <qstring.h>

int main(void)
{
	QString s1 = "aaaa", s2;

	s2 = "bbbb";

	s1 += s2 + "x";
	s1 += "cccc";

	printf("%s\n", (const char *)s1);
	printf("%s\n", (const char *)s2);

	s2 += "xxx" + s2;

	printf("%s\n", (const char *)s2);

	s1 = "x";
	s2 = "y";
	printf("%d\n", s1 == "x");
	printf("%d\n", s2 == "x");
	printf("%d\n", "y" == s1);
	printf("%d\n", "y" == s2);
	printf("%d\n", s1 == s2);

	s1.sprintf("hello %s%c", "world", '\n');
	printf("%s", (const char *)s1);

	return 0;
}
